﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetFrameworkExtensions.Utils
{
  public class EmptyServiceProvider : IServiceProvider
  {
    public static IServiceProvider Default
    {
      get
      {
        return (_default ?? (_default = new EmptyServiceProvider()));
      }
    }

    private static IServiceProvider _default;
    private EmptyServiceProvider() {}

    public object GetService(Type serviceType)
    {
      return null;
    }
  }
}
